package com.san.metadata.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.san.common.utils.Query;
import com.san.metadata.dao.DataManageManager;
import com.san.metadata.service.DataManageService;

@Service
public class DataManageviceImpl implements DataManageService {

	@Autowired
	DataManageManager dataManageManager;

	@Override
	public List<Map<String, Object>> list(Query query, Long tableId) {
		return dataManageManager.list(query, tableId);
	}

	@Override
	public int count(Query query, Long tableId) {
		return dataManageManager.count(query, tableId);
	}

	@Override
	public List<Map<String, Object>> getByrepeatMark(Long tableId, String repeatMark) {
		return dataManageManager.getByrepeatMark(tableId, repeatMark);
	}

	@Override
	public boolean remove(Long tableId, String repeatMark) {
		return dataManageManager.remove(tableId, repeatMark);
	}

}
